<template>
	<view class="integral-case">
		<!-- 导航栏 -->
		<nav-bar :titleName="'我的积分'"></nav-bar>
		<!-- 背景 -->
		<view class="integral-case-bg">
			<text class="integral-number">50900</text>
			<view class="integral-text">
				<icon class="icon-LEIJI"></icon>
				<text>累计获得积分</text>
			</view>
		</view>
		<!-- 列表 -->
		<view class="integral-list">
			<view class="integral-list-title">积分记录</view>
			<view class="integral-item" v-for="(item, index) in list" :key="index">
				<view class="integral-item-left">
					<view class="integral-item-left-t">签到</view>
					<view class="integral-item-left-s">获得时间：2021-7-25</view>
				</view>
				<view class="integral-item-right">+10</view>
			</view>
		</view>
		<!-- 结束图片 -->
		<end-img />
	</view>
</template>

<script>
import NavBar from '../components/navBar/navBar.vue';
import EndImg from '@/components/endImg/endImg.vue';
export default {
	components: {
		NavBar,
		EndImg
	},
	data() {
		return {
			list: [1, 2, 3, 4, 5, 6, 7, 8]
		};
	},
	onLoad(options) {}
};
</script>

<style scoped lang="scss">
.integral-case {
	padding: 520rpx 32rpx 32rpx;
	.integral-case-bg {
		width: 100%;
		height: 480rpx;
		background: url(https://nabercat.oss-cn-hangzhou.aliyuncs.com/pet-hospital/icon-jifeng-list-bg.png) no-repeat;
		background-size: cover;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		display: flex;
		align-items: center;
		flex-direction: column;
		z-index: 99;
		.integral-number {
			font-size: 104rpx;
			font-weight: 500;
			color: #ffffff;
			line-height: 120rpx;
			margin: 222rpx 0 8rpx;
		}
		.integral-text {
			display: flex;
			align-items: center;
			font-size: 32rpx;
			font-weight: 500;
			color: #ffffff;
			line-height: 44rpx;
			.icon-LEIJI {
				width: 30rpx;
				height: 30rpx;
				background: url(https://nabercat.oss-cn-hangzhou.aliyuncs.com/pet-hospital/icon-jifeng-234597.png) no-repeat;
				background-size: cover;
				margin-right: 8rpx;
			}
		}
	}
	.integral-list {
		.integral-list-title {
			font-size: 36rpx;
			font-weight: 600;
			color: #333333;
			line-height: 50rpx;
			margin-bottom: 32rpx;
		}
		.integral-item {
			height: 140rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			position: relative;
			&::before {
				content: '';
				width: 98%;
				height: 2rpx;
				background: #f1f1f1;
				position: absolute;
				bottom: 0;
				left: 50%;
				transform: translateX(-50%);
			}
			&:nth-last-of-type(1):before {
				height: 0;
			}
			.integral-item-left {
				flex: 1;
				.integral-item-left-t {
					font-size: 28rpx;
					color: #333333;
					line-height: 40rpx;
					margin-bottom: 8rpx;
				}
				.integral-item-left-s {
					font-size: 24rpx;
					color: #999999;
					line-height: 34rpx;
				}
			}
			.integral-item-right {
				font-size: 32rpx;
				font-weight: 600;
				color: #34d1a9;
				line-height: 44rpx;
			}
		}
	}
}
</style>
